package net.zabuchy.IssueHelper;

import java.util.ArrayList;
import java.util.List;

import net.zabuchy.loginHelper.UserRoles;

public enum IssuesFilterLists {

	Assigned_to_me,
	Open,
	Not_confirmed,
	All_issues;
	
	
	public static List<String> getIssuesFilterList(String role) {
		
		List<String> list = new ArrayList<String>(0);
		list.add("Assigned to me");
		list.add("Open");
		
		if(role.equals(UserRoles.ROLE_ADMIN) ||
				role.equals(UserRoles.PROJECT_MANAGER)) {
			list.add("Not confirmed");
		}
		
		if(role.equals(UserRoles.ROLE_ADMIN)) {
			list.add("All issues");
		}
		
		return list;
		
	}
	
	
}
